package com.suixun.entity;

import java.text.SimpleDateFormat;
import java.util.Calendar;

/**
 * BaseMessage.java
 * 消息报文
 *
 * @author <a href="mailto:huangy@17find.com">hellmash</a>
 * @version create on 2016-09-20 07:23
 *          <p>
 *          CopyRight(c)2015 杭州随寻科技有限公司 17find.com 版权所有
 */
public abstract class BaseMessage {

    private static final SimpleDateFormat sdf = new SimpleDateFormat("yyMMddHHmmss");

    
    public abstract String getCmd();

    
    public abstract String getPacket();

    
    public String getNowTime() {
        return sdf.format(Calendar.getInstance().getTime());
    }
}
